package im.zhihao.zhdisk.module.link.model.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(description = "用户短链信息")
@TableName(value = "user_short_link")
public class UserShortLink implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id")
    @ApiModelProperty(value = "用户ID", example = "1")
    private Integer userId;

    @TableId(value = "short_link_id")
    @ApiModelProperty(value = "短链ID", example = "2")
    private Integer shortLinkId;

    @TableField(value = "username")
    @ApiModelProperty(value = "用户名", example = "1")
    private String username;
}
